<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>{% block title %}欢迎光临{% endblock title %}</title>
    <!-- Bootstrap -->
    <link href="http://apps.bdimg.com/libs/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet">

    <!-- 引入下面两个库让 IE8 支持 HTML5 元素 -->
    <!-- 警告: Respond.js 通过 file:// 浏览的时候不能正常工作！-->
    <!--[if lt IE 9]>
      <script src="http://apps.bdimg.com/libs/html5shiv/3.7/html5shiv.min.js"></script>
      <script src="http://apps.bdimg.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

    <!--<script type=text/javascript src="/static/js/jquery.js"></script>-->

    <script src="http://apps.bdimg.com/libs/jquery/1.11.1/jquery.min.js"></script>
    <script src="http://apps.bdimg.com/libs/bootstrap/3.3.0/js/bootstrap.min.js"></script>

    <script type="text/javascript">
        $.ajaxSetup({
            headers: { "X-CSRFToken": getCookie("csrftoken") }
        });
        function getCookie(name) {
            var arr,reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)");

            if(arr=document.cookie.match(reg)) {
                return unescape(arr[2]);
            } else {
                return null;
            }
        }
    </script>

    <style type="text/css">
    body {
        padding-top: 60px;
    }
    </style>
    {% block css %}

    {% endblock css %}

    {% block js %}

    {% endblock js %}
  </head>
<body>
    <nav class="navbar navbar-default navbar-fixed-top" role="navigation">
    <div>
      <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
        <ul class="nav navbar-nav">
            <li><a href="/">Welcome</a></li>
        {% for column in nav_display_columns %}
            <li><a href="{{ column.get_absolute_url }}">{{ column.name }}</a></li>
        {% endfor %}
            <li data-align="right"><a href="/user">用户管理</a></li>
        </ul>
    </div>
    </nav>

    <div class="row clearfix" style="padding-left: 20px;">
        <div>
            {% block content %}
                <h1>新闻网</h1>
            {% endblock content %}
        </div>
    </div>

    <div class="row clearfix" style="padding-top: 20px;">
      <div>
       <div class="well well-sm">
        <div style="text-align:center;">
         <a href="/aboutus/disclaimer.html">免责声明</a> |
         <a href="/aboutus/index.html">关于我们</a>
        </div>
        <div style="padding-top:10px; text-align: center">
          其他描述
        </div>
       </div>
      </div>
    </div>

    {% include "baidutongji.html" %}
  </body>
</html>